package top.lingkang.securityoauth2.core.entity;

/**
 * @author lingkang
 * Created by 2022/7/8
 */
public class DefaultClientDetail implements ClientDetail {
    private String client_id;

    private String client_secret;

    private String[] grant_type;

    private String scope;


    public DefaultClientDetail(String client_id, String client_secret, String[] grant_type) {
        this.client_id = client_id;
        this.client_secret = client_secret;
        this.grant_type = grant_type;
    }

    public DefaultClientDetail(String client_id, String client_secret, String[] grant_type, String scope) {
        this.client_id = client_id;
        this.client_secret = client_secret;
        this.grant_type = grant_type;
        this.scope = scope;
    }

    @Override
    public String client_id() {
        return client_id;
    }

    @Override
    public String client_secret() {
        return client_secret;
    }

    @Override
    public String[] grant_type() {
        return grant_type;
    }

    @Override
    public String scope() {
        return scope;
    }
}
